package cn.com.inossem.model;

import java.io.Serializable;

import android.os.Parcel;
import android.os.Parcelable;

public class BaGuaListInfoBean implements Parcelable, Serializable {

	/**
	 * 主键
	 */
	private String id;

	private String name;
	/**
	 * 父级八卦id
	 */
	private String parentID;
	/**
	 * 八卦内容
	 */
	private String text;
	/**
	 * 八卦头像
	 */
	private String icon = "";
	/**
	 * 标签（逗号分割）
	 */
	private String keys;
	/**
	 * 图片（base64逗号分割）
	 */
	private String pics;
	/**
	 * 状态1有效 0失效
	 */
	private String state;

	private String isFriendPraise;// 1有好友人赞过，0没有好友赞过

	/**
	 * 有多少人赞过
	 */
	private String praseCount;

	/**
	 * 我自己是否赞过 1赞过，0没赞过
	 */
	private String isMePraise = "0";

	private String createTime;

	private String total;// 评论数

	// imagePath;

	// gossipID

	// /**
	// * 返回子帖子
	// */
	// private List<Gossip> chilren;
	/**
	 * 返回图片list
	 */

	private String isMeSend = "0";

	private String picList = "";

	private String children;
	
	private int userID;

	public BaGuaListInfoBean() {

	}

	public String getIsMeSend() {
		return isMeSend;
	}

	public void setIsMeSend(String isMeSend) {
		this.isMeSend = isMeSend;
	}

	public String getParentID() {
		return parentID;
	}

	public void setParentID(String parentID) {
		this.parentID = parentID;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getKeys() {
		return keys;
	}

	public void setKeys(String keys) {
		this.keys = keys;
	}

	public String getPics() {
		return pics;
	}

	public void setPics(String pics) {
		this.pics = pics;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getPicList() {
		return picList;
	}

	public void setPicList(String picList) {
		this.picList = picList;
	}

	public String getIsFriendPraise() {
		return isFriendPraise;
	}

	public void setIsFriendPraise(String isFriendPraise) {
		this.isFriendPraise = isFriendPraise;
	}

	public String getPraseCount() {
		return praseCount;
	}

	public void setPraseCount(String praseCount) {
		this.praseCount = praseCount;
	}

	public String getIsMePraise() {
		return isMePraise;
	}

	public void setIsMePraise(String isMePraise) {
		this.isMePraise = isMePraise;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getChildren() {
		return children;
	}

	public void setChildren(String children) {
		this.children = children;
	}

	public String getTotal() {
		return total;
	}

	public void setTotal(String total) {
		this.total = total;
	}

	public int getUserID() {
		return userID;
	}

	public void setUserID(int userID) {
		this.userID = userID;
	}

	private BaGuaListInfoBean(Parcel in) {

		text = in.readString();
		icon = in.readString();
		keys = in.readString();
		pics = in.readString();
		id = in.readString();
		parentID = in.readString();
		state = in.readString();

		isFriendPraise = in.readString();
		praseCount = in.readString();
		isMePraise = in.readString();
		createTime = in.readString();
		children = in.readString();
		total = in.readString();
		userID = in.readInt();

	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {

		dest.writeString(text);
		dest.writeString(icon);
		dest.writeString(keys);
		dest.writeString(pics);
		dest.writeString(id);
		dest.writeString(parentID);
		dest.writeString(state);

		dest.writeString(isFriendPraise);
		dest.writeString(praseCount);
		dest.writeString(isMePraise);
		dest.writeString(createTime);
		dest.writeString(children);
		dest.writeString(total);
		dest.writeInt(userID);
	}

	public static final Parcelable.Creator<BaGuaListInfoBean> CREATOR = new Parcelable.Creator<BaGuaListInfoBean>() {
		public BaGuaListInfoBean createFromParcel(Parcel in) {
			return new BaGuaListInfoBean(in);
		}

		public BaGuaListInfoBean[] newArray(int size) {
			return new BaGuaListInfoBean[size];
		}
	};

}
